﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="JobDetail.aspx.cs" Inherits="Department_JobDetail" %>

<%@ Register Src="../Control/DepartmentDList.ascx" TagName="DepartmentDList" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../StyleSheet.css" rel="stylesheet" type="text/css" />
    <style>
        html, body
        {
            margin: 0;
            padding: 0;
            height: 100%;
        }
        #stylized
        {
            border: solid 2px #b7ddf2;
            background: #ebf4fb;
            width: 80%;
            padding: 5px;
        }
        .label
        {
            text-align: left;
            width: 80px;
        }
        .textbox
        {
            text-align: left;
        }
        .textbox input
        {
            width: 100%;
        }
        .textbox textarea
        {
            width: 100%;
            height: 40px;
        }
        .roundbtn
        {
            display: inline-block;
            height: 22px;
            line-height: 22px;
            background: url(../Image/UI/btnall.png) right 0 no-repeat;
            padding: 0 5px 0 0;
        }
        .roundbtn a
        {
            display: inline-block;
            height: 22px;
            background: url(../Image/UI/btnall.png) left -22px no-repeat;
            padding: 0 3px 0 8px;
            outline: none;
            text-decoration: none;
            color: Black;
        }
        /*revised*/.roundbtn a:hover
        {
            text-decoration: none;
            color: #CC3030;
        }
        .roundbtn input.select
        {
            background-position: left -44px;
            width: 18px;
            text-indent: -9999px;
            padding: 0;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table style="width: 100%; height:100%" border="0" cellspacing="0" cellpadding="0px">
        <tr>
            <td align="center" runat="server" id="DptForm" valign="middle">
                <div id="stylized">
                    <table width="100%" cellpadding="10">
                        <tr>
                            <td colspan="3" style="text-align: left">
                                <asp:Label ID="lblMode" runat="server" Font-Size="15pt" Font-Bold="True" ForeColor="Red"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="label">
                                职位名称：
                            </td>
                            <td class="textbox">
                                <asp:TextBox ID="JobName" runat="server"></asp:TextBox><br />
                                <asp:RequiredFieldValidator ID="RangeValidator1" runat="server" ControlToValidate="JobName"
                                    ErrorMessage="RangeValidator">职位名称不得为空</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="label">
                                所属部门：
                            </td>
                            <td class="textbox">
                                <uc2:DepartmentDList ID="dpt" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="label">
                                职位内容：
                            </td>
                            <td class="textbox">
                                <asp:TextBox ID="JobContent" runat="server" TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="label">
                                职位职责：
                            </td>
                            <td class="textbox">
                                <asp:TextBox ID="Jobfunction" runat="server" TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="label">
                                主要权力：
                            </td>
                            <td class="textbox">
                                <asp:TextBox ID="Jobpower" runat="server" TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="label">
                                任职资格：
                            </td>
                            <td class="textbox">
                                <asp:TextBox ID="WorkPermit" runat="server" TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="label">
                                启用状态：
                            </td>
                            <td class="textbox">
                                <asp:DropDownList ID="Del" runat="server">
                                    <asp:ListItem Value="0">启用</asp:ListItem>
                                    <asp:ListItem Value="1">作废</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </div>
                <br />
                <div style="text-align: center; margin-right: 20px;">
                    <div style="display: none">
                        <span class="roundbtn">
                            <asp:LinkButton ID="Add" runat="server" Text="职 位 添 加" OnClick="Add_Click" CausesValidation="False"></asp:LinkButton>
                        </span>&nbsp; <span class="roundbtn">
                            <asp:LinkButton ID="Cancel" runat="server" Text="取 消" Enabled="False" OnClick="Cancel_Click"
                                CausesValidation="False"></asp:LinkButton>
                        </span>&nbsp;
                    </div>
                    <div>
                        <span class="roundbtn">
                            <asp:LinkButton ID="Save" runat="server" Text="职 位 保 存" OnClick="Save_Click" OnClientClick="return confirm('确认保存？')"></asp:LinkButton>
                        </span>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
